package ru.tulupov.scheduledrunner;

public class DelayedRunner extends Runner {
	private long delay;

	public DelayedRunner(String command, long delay) {
		super(command);
		if (delay < 0) {
			throw new IllegalArgumentException();
		}
		this.delay = delay;
	}

	@Override
	public void run() {
		try {
			Thread.sleep(delay);
		} catch (InterruptedException e) {
			
		}
		super.run();
	}
}
